home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / prodor31.arc / PROUTEST.BAT < prev    next >
DOS Batch File  |  1989-10-08  |  1KB  |  49 lines

  1. echo off
  2. rem -- process test uploads request - for ProDOOR 3.0
  3. rem -- %1-logfile, %2-testdir, %3-comport
  4.  
  5. rem -- keep a permanent copy of all DSZLOG transfer log files
  6. rem if exist %DSZLOG% type %DSZLOG% }}L:\pcb\perm.log
  7.  
  8. rem -- exit quietly if no files were uploaded
  9. if not exist %2\*.* goto end
  10.  
  11. rem -- convert unwanted .arc files to .zip format
  12. if not exist %2\*.arc goto testzip
  13.  
  14. :convert
  15. chkpath proecho %0 >>%1
  16. if errorlevel 1 goto end
  17. proecho %3 ~~Converting ARC files to ZIP format.  Please wait...~
  18.  
  19. rem -- I recommend you add ",*.ARC,999," to your UPSEC to lock out ARC
  20. rem -- uploads if you are converting to ZIP.  If you accept ARC files
  21. rem -- you should delete the next two commands
  22.  
  23. rem -- convert ARC files to ZIP files; TOZIP is from ZIPKIT43.ZIP or newer.
  24. chkpath tozip %0 >>%1
  25. if errorlevel 1 goto testzip
  26. tozip %2\* >>%1
  27.  
  28. rem -- dsz's $door.log is no longer valid after conversion, delete it.
  29. if exist %DSZLOG% del %DSZLOG%
  30.  
  31.  
  32. :testzip
  33. rem -- test zipfiles
  34. proecho %3 ~~Testing uploads.  Please wait...~
  35.  
  36. rem -- check for truncated uploads; ZIPDS is from ZIPDS11.ZIP or newer
  37. chkpath zipds %0 >>%1
  38. zipds %2\* >>%1
  39.  
  40. rem -- remove ansi comments from uploads; STRIPZIP is from STRIPZIP.ZIP
  41. chkpath stripzip %0 >>%1
  42. stripzip %2\* >>%1
  43.  
  44. rem -- finally use PKUNZIP to test for correct crcs in new files.
  45. chkpath pkunzip %0 >>%1
  46. pkunZIP -t %2\* >>%1
  47.  
  48. :end
  49.